package com.bst.md.service.impl;

import com.bst.common.annotation.DataSource;
import com.bst.common.constant.JobConstant;
import com.bst.common.utils.StringUtils;
import com.bst.md.domain.MdMedDim;
import com.bst.md.mapper.MdMedDimDataMapper;
import com.bst.md.service.IMdMedDimDataService;
import com.bst.md.service.IMdMedDimService;
import com.bst.md.vo.MdMedDimParamVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

@Service
public class MdMedDimDataServiceImpl implements IMdMedDimDataService {

    @Autowired
    MdMedDimDataMapper mdMedDimDataMapper;
    @Autowired
    IMdMedDimService mdMedDimService;

    @Override
    @DataSource(value= JobConstant.DB_CLS_DW)
    public List<Map<String, Object>> queryDayDataByMonth(String mm) {
        return mdMedDimDataMapper.queryDayDataByMonth(mm);
    }

    @Override
    @DataSource(value= JobConstant.DB_CLS_DW)
    public List<Map<String, Object>> queryCommonDataWithWhere(MdMedDimParamVO paramVO) {
        return mdMedDimDataMapper.queryCommonDataWithWhere(paramVO);
    }
}
